package com.aaa.home.controller;

import com.aaa.common.vo.Result;
import com.aaa.home.service.TbZoneCourseService;
import com.aaa.home.vo.Zone.ZoneCourseVo;
import com.aaa.home.vo.ZoneVo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author ：Mickey
 * @date ：Created in 2022/12/10 11:28
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/home/zone-course")
@Api(tags = "专区课程接口类")
public class TbZoneCourseController {
    @Autowired
    private TbZoneCourseService zoneCourseService;

    //分页查询所有角色
    @PostMapping("/getAllDetail/{current}/{pageSize}")
    public Result findRoleByPage(@RequestBody ZoneCourseVo zoneCourseVo,
                                 @PathVariable Integer current,
                                 @PathVariable Integer pageSize
    ){
        System.out.println(zoneCourseVo+"aaaaaaaaaaaaaaaaaaaaaaaa");
        return zoneCourseService.getAllZonePage(zoneCourseVo,current,pageSize);
    }
}
